package com.example.demo.practice.enterprisemanager;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.example.demo.practice.R;
import com.example.demo.practice.ui.TitleView;

public class NewTour extends Activity {
    private Button sure;

    private TitleView title;


    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.newtour);
        title = findViewById(R.id.title_text_tv);
        title.setText("发布任务");
        sure = findViewById(R.id.sure);
        sure.setOnClickListener(new Button.OnClickListener(){//创建监听
            public void onClick(View v) {
                Intent intent = new Intent(NewTour.this,TourAdm.class);
                startActivity(intent);
                finish();
            }
        });

    }
}
